<?php
include("../db_connect.php");

if( isset($_GET['name']) || isset($_GET['address']) || isset($_GET['type']) ){

$name  = mysql_real_escape_string(htmlentities(trim($_GET['name'])));
$address  = mysql_real_escape_string(htmlentities(trim($_GET['address'])));
$type  = mysql_real_escape_string(htmlentities(trim($_GET['type'])));


$sql = mysql_query("INSERT INTO tblmanufacturer(`manufacturename`, `address`, `itemtype` )
VALUES('".$name."',
'".$address."',
'".$type."'
) ")or die(mysql_error());

if (mysql_affected_rows()){		
	
		echo true;
		
	}
	else{		
		echo $sql;
		
	}



}
else {
die();
}



?>